{% extends 'task_con/base.html' %}

{% block title %}
    浏览已发布任务
{% endblock %}

{% block content %}
    <section class="shop section">
        <div class="container">
            <div class="row">
                <div class="col-lg-3 mb-4">
                    <div class="account-sidebar">
                        <div class="sidebar-list">
                            <a href="dashboard.html" class="active"><i class="far fa-th-large"></i> Dashboard</a>
                            <a href="product.html"><i class="far fa-layer-group"></i> Products <span>20</span></a>
                            <a href="add-product.html"><i class="far fa-upload"></i> Add New Product</a>
                            <a href="all-order.html"><i class="far fa-shopping-bag"></i> All Orders <span>2</span></a>
                            <a href="vendor-profile.html"><i class="far fa-cog"></i> Account Settings</a>
                            <a href="#"><i class="far fa-lock"></i> Logout</a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-9">
                    <div class="account-content bg-white pt-0">
                        <h4 class="account-content-title"><i class="far fa-layer-group"></i> 已发布项目</h4>
                        <div class="edit-profile">
                            <form action="#">
                                <div class="row">
                                    <table border="1">
                                        <thead>
                                        <tr>
                                            <th>项目名称</th>
                                            <th>级别要求</th>
                                            <th>项目类型</th>
                                            <th>价格</th>
                                            <th>发布时间</th>
                                            <th>截止时间</th>
                                            <th>描述</th>
                                            <th>状态</th>
                                        </tr>
                                        </thead>
                                        >
                                        <tbody>
                                        {% for obj in work_list %}
                                            <tr>
                                                <td>{{ obj.task_name }}</td>
                                                <td>{{ obj.task_rank }}</td>
                                                <td>{{ obj.task_type }}</td>
                                                <td>{{ obj.task_salary }}</td>
                                                <td>{{ obj.task_publish_time }}</td>
                                                <td>{{ obj.task_deadline_time }}</td>
                                                <td>{{ obj.task_description }}</td>
                                                <td>{{ obj.task_status }}</td>
                                                <td>{{ obj.task_audit }}</td>
                                            </tr>
                                        {% endfor %}
                                        </tbody>
                                        >
                                    </table>
                                    >

                                </div>

                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

{% endblock %}